package com.mqz.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    SUCCESS(200, "成功"),
    ERROR(500, "服务器内部错误"),
    LOGIN_ERROR(500210, "用户ID不存在或密码错误"),

    MOBILE_FORMAT_ERROR(500211, "手机号码格式不正确"),
    BING_ERROR(500212, "参数绑定异常"),
    MOBILE_NOT_EXIST_ERROR(500213, "手机号码格式不正确"),
    PASSWORD_UPDATE_ERROR(500214, "密码修改失败"),

    EMPTY_STOCK_ERROR(500500, "该商品库存不足"),
    REPEATED_PURCHASE_ERROR(500501, "该商品每人限购一件"),
    UNKNOWN_PURCHASE_ERROR(500502, "抢购失败，请重试"),

    WAITING(500600, "排队中，请等待..."),

    REQUEST_ILLEGAL(500601, "请求非法"),
    SESSION_ERROR(500602, "用户信息有误"),
    CAPTCHA_ERROR(500603, "验证码输入有误"),
    OVER_REQUEST_ERROR(500604, "访问的太频繁了，请等等再试"),

    PURCHASE_FAILED_ERROR(500605, "本次没有抢购到，请重新购买试试");

    private final Integer code;
    private final String message;
}
